                
                <section class="row">
                    <div class="col-12">
                        <div>
                            <h1><?= $template['title'] ?></h1>
                        </div>
                        <div>
                            <?= $this->breadcrumb->output(); ?>
                        </div>
                    </div>
                </section>

                <div class="ajax-container">
                    
                    <section class="row">
                        <div class="col-12">
                            <div class="panel panel-default">
                                <div class="panel-heading">
                                    <h2 class="panel-title"><?= $template['title'] ?></h3>
                                </div>
                                <div class="panel-body form-container">
                                    <?php if(isset($template['partials']['notifications'])) echo $template['partials']['notifications']; ?>
                                    <form id="subscription-form" method="post" action="<?= base_url() ?>subscriptions/<?= $action ?>" class="form-bordered form-horizontal">
                                        <fieldset>
                                            <legend><?= $template['title'] ?></legend>
                                            <ul>
                                                <li class="form-group row{name-status}">
                                                    <label for="name" class="control-label col-3">
                                                        Name *
                                                        <br><small>(Alphanumeric Characters)</small>
                                                    </label>
                                                    <div class="control-group input-center col-9">
                                                        <div class="input-size col-12">
                                                            <div class="input-group">
                                                                <span class="input-group-addon"><i class="fa fa-edit"></i></span>
                                                                <input type="text" name="name" id="name" class="form-control" placeholder="Subscription Name" value="<?= $name ?>">
                                                            </div>
                                                            <?= form_error('name') ?>
                                                        </div>
                                                    </div>
                                                </li>
                                                <li class="form-group row{description-status}">
                                                    <label for="description" class="control-label col-3">
                                                        Description
                                                        <br><small>(Long Text)</small>
                                                    </label>
                                                    <div class="control-group col-9">
                                                        <div class="input-size">
                                                            <textarea name="description" id="description" class="form-control" placeholder="Subscription Description..."><?= $description ?></textarea>
                                                            <?= form_error('description') ?>
                                                        </div>
                                                    </div>
                                                </li>

                                                <?php if ($add) : ?>
                                                <li class="form-group row">
                                                    <label for="add-another" class="control-label col-3">
                                                        Add Another
                                                        <br><small>(Clear Form After Add)</small>
                                                    </label>
                                                    <div class="control-group col-9">
                                                        <div class="input-size">
                                                            <div class="checkbox">
                                                                <label class="control-label">
                                                                    <input type="checkbox" name="add-another" id="add-another" value="yes"<?= $add_another ?>> 
                                                                    <small>Do Not Redirect.</small>
                                                                </label>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </li>
                                                <?php endif; ?>
                                            </ul>
                                        </fieldset>
                                        <div class="submit-group col-12 align-right">
                                            <input type="hidden" name="id" id="id" value="<?= $id ?>">
                                            <button type="submit" name="submit" class="btn btn-primary"><i class="fa fa-save"></i> Save</button>
                                            <a href="<?= base_url() ?>subscriptions" class="btn btn-default"><i class="fa fa-times"></i> Cancel</a>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </section>
                <!-- page-script -->
                <script src="<?= base_url() ?>js/modules/subscriptions/subscription_form.js"></script>
                </div>